Merge pull request #742 from joek/cloudfoundry

Cloudfoundry integration

Andrew Cantino 10 years ago
parent
commit
ef9ee40521
3 changed files with 15 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 2 0
      Procfile.CF
  3. 12 0
      manifest.yml.sample

+ 1 - 0
.gitignore

@@ -24,3 +24,4 @@ deployment/cookbooks
24 24
 .*un~
25 25
 .ruby-gemset
26 26
 .ruby-version
27
+manifest.yml

+ 2 - 0
Procfile.CF

@@ -0,0 +1,2 @@
1
+web: bundle exec rake db:migrate && bundle exec rails server -p $PORT
2
+jobs: bundle exec rails runner bin/threaded.rb

+ 12 - 0
manifest.yml.sample

@@ -0,0 +1,12 @@
1
+## This file is used for deployment to cloudfoundry.
2
+
3
+---
4
+applications:
5
+- name: huginn
6
+  url: <app-url>
7
+  path: .
8
+  memory: 512M
9
+  command: nohup foreman start --procfile Procfile.CF
10
+  instances: 1
11
+  services:
12
+    - huginn-db